<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="borrow-id"></th>
            <th>借用单号</th>
            <th>退还仓库</th>
            <th>审批状态</th>
            <th>借用状态</th>
            <th>借用日期</th>
            <th>出库日期</th>
            <th>退还日期</th>
            <th>申请人</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td>
                    {if $item->getData('status') != $status_cancel}
                    <input type="checkbox" class="borrow-id" name="borrow_id[]" value="{$item.borrow_id}"></td>
                    {/if}
                <td class="copy-text">{$item.borrow_sn}</td>
                <td>{$item.win.name}</td>
                <td>{$item.check_status}</td>
                <td>{$item.status}</td>
                <td>{$item.borrow_date}</td>
                <td>{$item.out_date}</td>
                <td>{$item.return_date}</td>
                <td>{$item.user.nickname}</td>
                <td class="text-left">{$item.remark}</td>
                <td class="text-left">
                    <a class="layui-btn layui-btn-xs layui-btn-normal ajax-form" width-form="80%" height-form="80%" href="{:url('info', ['borrow_id'=>$item['borrow_id']])}" title="借用详情">查看</a>
                    {if $item->getData('status') != $status_cancel}
                        {if $is_show_check && \app\common\model\JobFlowModule::isCheckIng($item)}
                        <a class="layui-btn layui-btn-xs check-job-flow" item="{$item.borrow_id}">审批</a>
                        {/if}
                    {/if}
                    {if $item->getData('status') == $status_wait}
                    <a href="{:url('save', ['borrow_id' => $item['borrow_id'], 'status' => $status_cancel])}" title="取消" confirm="1" class="layui-btn ajax-get layui-btn-xs layui-bg-cyan">取消</a>
                    {/if}
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="12">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>